package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.ExamGroup;
import com.example.demo.mapper.ExamExamMapper;
import com.example.demo.service.ExamGroupService;
import com.example.demo.mapper.ExamGroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 18364
* @description 针对表【exam_group】的数据库操作Service实现
* @createDate 2023-11-09 10:51:27
*/
@Service
public class ExamGroupServiceImpl extends ServiceImpl<ExamGroupMapper, ExamGroup>
    implements ExamGroupService{
    @Autowired
    ExamGroupMapper examGroupMapper;
    @Override
    public int deletegroup(Integer id) {
        int re=examGroupMapper.deleteById(id);
        return re;
    }

    @Override
    public ExamGroup selectById(Integer id) {
        ExamGroup examGroup=examGroupMapper.selectById(id);
        return examGroup;
    }

}




